<?php 
/**
 * @package ZT News Module for Joomla! 1.6
 * @author http://www.ZooTemplate.com
 * @copyright (C) 2011- ZooTemplate.com
 * @license JS files are GNU/GPL
**/

// no direct access
defined('_JEXEC') or die('Restricted access');
JHTML::_('stylesheet','default.css','modules/mod_zt_news/assets/css/');
 ?>
<?php
	$columns = $params->get('columns',2);
	if($columns > count($listSections))
		$columns = count($listSections);
	switch ($columns)
	{
		case '1':
			$width = '100';
			break;
		case '2':
			$width = '49';
			break;
		case '3':
			$width = '32.9';
			break;
		case '4':
			$width = '24.5';
			break;
		case '5':
			$width = '19.5';
			break;
		default:
			$width = '49';
	}
	$seperator = 1;
?>
<div style="display: none;"><a title="Joomla Templates" href="http://www.ZooTemplate.com">Joomla Templates</a> and Joomla Extensions by ZooTemplate.com</div>
<div class="jv_news_wrap"> 
<?php 
$listItems = $jvNews->getItemsByCatId(); ?>  
<div class="news-events"> 
	<div class="jv-category">
	<div class="jvpadding">

		<div class="cls"></div>
		<ul class="lead">
		<?php $lead = (int)$params->get('no_intro_items',1);
			if(count($listItems) <= $lead) $lead1 = count($listItems);
			else $lead1 = $lead;
		?>
		<?php for($j=0;$j<$lead1;$j++) : ?>
			<li>
				

				

				
				
				
				
				
				<div class="event-item">	
					<div class="event-item-images">
						<?php if ($listItems[$j]->thumb != '' && $params->get('is_image',1) == 1) :?>
						<a href="<?php echo $listItems[$j]->link; ?>" title="<?php echo $listItems[$j]->title; ?>">
						<img src="<?php echo $listItems[$j]->thumb; ?>" alt="<?php echo $listItems[$j]->title; ?>" title="<?php echo $listItems[$j]->title; ?>" class="<?php if($imgAlign == "left") { echo "jv-sectcont-thumb-left";} else { echo "jv-sectcont-thumb-right"; }?>" />
						</a>
						<?php endif; ?>
					</div>
					<div class="event-item-intro">
						<h4><a href="<?php echo $listItems[$j]->link; ?>" title="<?php echo $listItems[$j]->title; ?>"><?php echo $listItems[$j]->title; ?></a></h4>
						<?php if ($listItems[$j]->introtext != false) :?>
						<p class="jv-sectcont-introtext"><?php echo ($listItems[$j]->introtext); ?></p>
						<?php endif; ?>
						<?php if($params->get('show_readmore') == 1) {?>
						<p class="jv-news-readmore">
							<a class="readmore" href="<?php echo $listItems[$j]->link; ?>"><?php echo JTEXT::_('NEWS READ MORE'); ?></a>
						</p>
						<?php }?>
					</div>
				</div>
				
				
				
				
				
				
				
				
				
			</li>
		<?php endfor; ?>
		</ul>
		<?php if($lead < count($listItems)):?>
		<p class="more_link"><?php echo JTEXT::_('NEWS MORE LINK'); ?></p>
		<ul class="article-item-list clearfix">
		<?php for($j=$lead;$j<count($listItems);$j++) : ?>
			<li>
				<a href="<?php echo $listItems[$j]->link; ?>"><?php echo $listItems[$j]->title; ?></a>
			</li>
		<?php endfor; ?>
		</ul>
		<?php endif; ?>
	</div>
	</div> 
</div>   
<div class="clearfix"></div>
</div>